//===================================================================================
// $$
//
// Coder: Code Milker v1.0
// 0 - upper
// 1 - lower
//===================================================================================

namespace App.Domain.Handlers {
    using System;
    using App.Data;
    using App.Domain.Contracts;
    using App.Model;

    public class GetEducation {
        private readonly IEducationRepository _educationRepository;

        public GetEducation(IEducationRepository educationRepository) {
            _educationRepository = educationRepository;
        }

        public Education Execute(Guid educationId) {
            try {
                return _educationRepository.GetEducation(educationId);
            }
            catch (InvalidOperationException ex) {
                throw new BusinessServicesException("UnableToRetrieveReminderExceptionMessage", ex);
            }
        }
    }
}
